﻿namespace OneWorks.DataBase.Entity
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using OneWorks.Metadata.Interface;

    public partial class User : IAggregateRoot
    {
        public User()
        {   
            Images = new List<Image>();
            Menus = new List<Menu>();
        }

        public System.Guid ID { get; set; }
        public string Account { get; set; }
        public string UserName { get; set; }
        public string PassWord { get; set; }
        public long CreateDate { get; set; }
        public long LastLogin { get; set; }
        public int ErrorCount { get; set; }
        public string Email { get; set; }
        public string Qq { get; set; }
        public string Mobile { get; set; }
        public bool IsLock { get; set; }
        public bool IsCasual { get; set; }

        public virtual ICollection<Image> Images { get; set; }
        public virtual ICollection<Menu> Menus { get; set; }
    }
}